package org.example.demo1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.net.InetAddress;
import java.net.UnknownHostException;


@SpringBootApplication
public class Demo1Application {

    public static void main(String[] args) throws UnknownHostException {
        SpringApplication.run(Demo1Application.class, args);
        String ip= InetAddress.getLocalHost().getHostAddress();
//        System.out.println("电脑ip为："+ip);
    }

}
